#pragma once

struct SETTINGS_DESC
{
	unsigned int windowHeight;
	unsigned int windowWidth;
	unsigned int msCount;
	bool windowed;
};

class Settings
{
	SETTINGS_DESC sd;
public:
	Settings(void);
	~Settings(void);

	unsigned int getWindowHeight() const { return sd.windowHeight; };
	unsigned int getWindowWidth() const { return sd.windowWidth; };
	unsigned int getMsCount() const { return sd.msCount; };
	unsigned int getWindowed() const { return sd.windowed; };

	void Set(SETTINGS_DESC *_sd);
	void setWindowHeight(unsigned int _windowHeight) { sd.windowHeight = _windowHeight; };
	void setWindowWidth(unsigned int _windowWidth) { sd.windowWidth = _windowWidth; };
	void setMsCount(unsigned int _msCount) { if (_msCount < 5) sd.msCount = _msCount; else sd.msCount = 4; };
	void setWindowed(bool _windowed) { sd.windowed = _windowed; };

	void ApplySettings();
};

